{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "37f0cc98",
   "metadata": {},
   "outputs": [],
   "source": [
    "\n",
    "user_data = [\"haixin\",\"karry\"]\n",
    "password_data = [\"123456\",\"123456\"]\n",
    "vip = [\"haixin\"]\n",
    "\n",
    "import time\n",
    "# 记得调用模块下面的time才能用\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "    if count == -1:\n",
    "        print(\"请在三分钟后尝试\")\n",
    "        time.sleep(180)\n",
    "    else:\n",
    "        username = input(\"请输入正确的账号：\")\n",
    "        password = input(\"请输入正确的密码：\")\n",
    "    if username in user_data:\n",
    "        if password in password_data:\n",
    "            if username in vip:\n",
    "            # 三个条件辨别是否为用户又是否为会员\n",
    "             print(\"登录成功，欢迎\",\"尊敬的会员\",username,\"使用~~\")\n",
    "             #会员登录成功提示\n",
    "            else:\n",
    "                 print(\"登录成功，欢迎\",\"尊敬的用户\",username,\"使用~~\")\n",
    "                #普通用户登录成功提示\n",
    "            break\n",
    "    else:\n",
    "        print(\"账号或密码输入错误！请重新输入,您还有\",count,\"次尝试机会\")\n",
    "else:\n",
    "    print(\"请重新输入您还有\",count,\"次尝试机会,再输错就要耐心等待哦！\")\n",
    "if username in vip:\n",
    "    count = 10\n",
    "    while True :\n",
    "        count -= 1\n",
    "        if count == -1:\n",
    "            print(\"不好意思，今天的机会已经用完了哦！可以明天再来哦！！\")\n",
    "            break\n",
    "        else:\n",
    "            week_time = int(input(\"您想要查询星期几的课程呢？（请输入数字1~7):\"))\n",
    "            print(\"课程表查询\")\n",
    "            if week_time == 1:\n",
    "                print(\"星期一\")\n",
    "                print(\"课程名称:太极拳\")\n",
    "                print(\"授课教师：陈清华\")\n",
    "                print(\"上课时间：08:00 - 09:30\")\n",
    "                print(\"课程地点：东区武术馆\")\n",
    "                print()\n",
    "                print(\"课程名称:大英（三）\")\n",
    "                print(\"授课教师：王瑾妍\")\n",
    "                print(\"上课时间：10:35 - 12:00\")\n",
    "                print(\"课程地点:10-204\")\n",
    "                print()\n",
    "                print(\"课程名称:Python语言\")\n",
    "                print(\"授课教师：许志超\")\n",
    "                print(\"上课时间：14:00 - 16:50\")\n",
    "                print(\"课程地点:2实-203\")\n",
    "            elif week_time == 2:\n",
    "                print(\"星期二\")\n",
    "                print(\"课程名称：创业基础\")\n",
    "                print(\"授课教师：高进\")\n",
    "                print(\"上课时间：09:45 - 12:00\")\n",
    "                print(\"课程地点：1-205\")\n",
    "                print()\n",
    "                print(\"课程名称：新媒体时代的新闻评论\")\n",
    "                print(\"授课教师：高进\")\n",
    "                print(\"上课时间：14:00 - 15:55\")\n",
    "                print(\"课程地点：3实-206\")\n",
    "            elif week_time == 3:\n",
    "                print(\"星期三\")\n",
    "                print(\"课程名称：融合新闻学\")\n",
    "                print(\"授课教师：高进、胡美香\")\n",
    "                print(\"上课时间：09：45 - 12：00\")\n",
    "                print(\"课程地点：新综合楼-612\")\n",
    "                print()\n",
    "                print(\"课程名称:大英（三）\")\n",
    "                print(\"授课教师：王瑾妍\")\n",
    "                print(\"上课时间：18:45 - 20:10\")\n",
    "                print(\"课程地点:10-204\")\n",
    "            elif week_time == 4:\n",
    "                print(\"星期四\")\n",
    "                print(\"课程名称：毛泽东思想和中国特色社会主义理论体系概论\")\n",
    "                print(\"授课教师：杨益孜\")\n",
    "                print(\"上课时间：14：00 - 16：50\")\n",
    "                print(\"课程地点：7-402\")\n",
    "            elif week_time == 5:\n",
    "                print(\"星期五\")\n",
    "                print(\"课程名称：Illustrator\")\n",
    "                print(\"授课教师：阚凤霞\")\n",
    "                print(\"上课时间：08：00 - 09：30\")\n",
    "                print(\"课程地点：新综合楼-612\")\n",
    "                print()\n",
    "                print(\"课程名称：毛泽东思想和中国特色社会主义理论体系概论（实践）\")\n",
    "                print(\"授课教师：杨益孜\")\n",
    "                print(\"上课时间：10：35 - 12：00\")\n",
    "                print(\"课程地点：7-402\")\n",
    "            else:\n",
    "                print(\"周末\")\n",
    "                print(\"空\")\n",
    "            print(\"\")\n",
    "            print(\"尊敬的用户，您今天还有\", count, \"次机会可查询\")\n",
    "else:\n",
    "        count = 5\n",
    "        while True:\n",
    "            count -= 1\n",
    "            if count == -1:\n",
    "                print(\"不好意思，今天的机会已经用完了哦！可以明天再来哦！\")\n",
    "                break\n",
    "            else:\n",
    "                week_time = int(input(\"您想要查询星期几的课程呢？（请输入数字1~7):\"))\n",
    "                print(\"课程表查询\")\n",
    "                if week_time == 1:\n",
    "                    print(\"星期一\")\n",
    "                    print(\"课程名称:太极拳\")\n",
    "                    print(\"授课教师：陈清华\")\n",
    "                    print(\"上课时间：08:00 - 09:30\")\n",
    "                    print(\"课程地点：东区武术馆\")\n",
    "                    print()\n",
    "                    print(\"课程名称:大英（三）\")\n",
    "                    print(\"授课教师：王瑾妍\")\n",
    "                    print(\"上课时间：10:35 - 12:00\")\n",
    "                    print(\"课程地点:10-204\")\n",
    "                    print()\n",
    "                    print(\"课程名称:Python语言\")\n",
    "                    print(\"授课教师：许志超\")\n",
    "                    print(\"上课时间：14:00 - 16:50\")\n",
    "                    print(\"课程地点:2实-203\")\n",
    "                elif week_time == 2:\n",
    "                    print(\"星期二\")\n",
    "                    print(\"课程名称：创业基础\")\n",
    "                    print(\"授课教师：高进\")\n",
    "                    print(\"上课时间：09:45 - 12:00\")\n",
    "                    print(\"课程地点：1-205\")\n",
    "                    print()\n",
    "                    print(\"课程名称：新媒体时代的新闻评论\")\n",
    "                    print(\"授课教师：高进\")\n",
    "                    print(\"上课时间：14:00 - 15:55\")\n",
    "                    print(\"课程地点：3实-206\")\n",
    "                elif week_time == 3:\n",
    "                    print(\"星期三\")\n",
    "                    print(\"课程名称：融合新闻学\")\n",
    "                    print(\"授课教师：高进、胡美香\")\n",
    "                    print(\"上课时间：09：45 - 12：00\")\n",
    "                    print(\"课程地点：新综合楼-612\")\n",
    "                    print()\n",
    "                    print(\"课程名称:大英（三）\")\n",
    "                    print(\"授课教师：王瑾妍\")\n",
    "                    print(\"上课时间：18:45 - 20:10\")\n",
    "                    print(\"课程地点:10-204\")\n",
    "                elif week_time == 4:\n",
    "                    print(\"星期四\")\n",
    "                    print(\"课程名称：毛泽东思想和中国特色社会主义理论体系概论\")\n",
    "                    print(\"授课教师：杨益孜\")\n",
    "                    print(\"上课时间：14：00 - 16：50\")\n",
    "                    print(\"课程地点：7-402\")\n",
    "                elif week_time == 5:\n",
    "                    print(\"星期五\")\n",
    "                    print(\"课程名称：Illustrator\")\n",
    "                    print(\"授课教师：阚凤霞\")\n",
    "                    print(\"上课时间：08：00 - 09：30\")\n",
    "                    print(\"课程地点：新综合楼-612\")\n",
    "                    print()\n",
    "                    print(\"课程名称：毛泽东思想和中国特色社会主义理论体系概论（实践）\")\n",
    "                    print(\"授课教师：杨益孜\")\n",
    "                    print(\"上课时间：10：35 - 12：00\")\n",
    "                    print(\"课程地点：7-402\")\n",
    "                else:\n",
    "                    print(\"周末\")\n",
    "                    print(\"空\")\n",
    "                print(\"\")\n",
    "                print(\"尊敬的用户，您今天还有\", count, \"次机会可查询\")\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "802cf2f7",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
